﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Templates_Gallery_Default" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style>
#content #top {
    background: none
    }
</style>

<%--<script type="text/javascript">
    var checkAll = function(checked) {
        var ids = new Array();
        ids[0] = "<%=cblProducts.ClientID%>";
        
        for (var i = 0; i < ids.length; i++) {
            var n = 1;
            var elem = document.getElementById(ids[i] + "_item" + n);
            while (elem) {
                elem.checked = checked;
                n++;
                elem = document.getElementById(ids[i] + "_item" + n);
            }
        }
        return false;
    }
    </script>	
    --%>
<acms:JavascriptFile ID="JavascriptFile1" runat="server" Path="http://brandonaaron.net/javascripts/plugins/livequery.js" />   
   <acms:StyleSheet runat="server" Path="~/Css/slimbox2.css" /> 
   <acms:JavascriptFile runat="server" Path="~/Scripts/slimbox2.js" />


<script>
    $(document).ready(function() {

        $(".thumbnail .lcol a").livequery(function() {
            $(this).slimbox({}, null, function(el) {
                return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
            }), function() { };

        });
        initjScrollPane();
        $('#<%= cblProducts.ClientID%> input:checkbox').click(function() {
            $('#<%= btnApplyFilter.ClientID %>').click();
        });
    });
</script>    

<asp:Panel runat="server" ID="pnlCheckAllCheckBoxList" Visible="false">
    <script type="text/javascript">
        $(document).ready(function() {
            $('.checkboxList input:checkbox').attr('checked', 'checked');
        });
        </script>
    </asp:Panel>


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentTop" Runat="Server">
    <div id="top" class="gallery clearfix" style="">
        <div class="filterCol">
            <h3>Select Product</h3>
            <acms:CheckBoxList ID="cblProducts" CssClass="checkboxList cblProduct clearfix" DataTextField="Name" DataValueField="Id" runat="server" /></li>
            <asp:HiddenField ID="txtFirstFilter" runat="server" Value="0" />
            <div class="controlsHolder">
                <asp:ImageButton ImageUrl="~/Images/transparent.gif" ID="btnApplyFilter" CssClass="" Text="" OnClick="btnApplyFilter_Click" runat="server" />
            </div>
        </div>

        <div class="rcol scroll-pane " style="height: 315px;">
            
            <telerik:RadAjaxLoadingPanel ID="loading" InitialDelayTime="0" MinDisplayTime="2" Transparency="10" runat="server">
                <div class="loadingx" style="width:720px; height:315px; background-color:Gray" >
                    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border: 0px;" />
                </div>
            </telerik:RadAjaxLoadingPanel>
            
            <telerik:RadAjaxManager ID="ajaxManager" DefaultLoadingPanelID="loading" ClientEvents-OnResponseEnd="onResponseEnd" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="btnApplyFilter">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="dlFeed" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
        
            
            
                
                <acms:SimpleRepeater ID="dlFeed" DataSourceID="dsList" AllowPaging="false" runat="server">
                    <ItemTemplate>
                        <div class="thumbnail">
                            
                            <%--<acms:PostThumbnail ID="postThumbnail" CssClass="lcol" HyperLink="true" RenderWidth="92" runat="server" />--%>
                            <span class="lcol">
                                <asp:HyperLink CssClass="thickbox" runat="server" ID="lnkThumb"><acms:PostThumbnail  ID="PostThumbnail1" runat="server" RenderWidth="92"/></asp:HyperLink>
                            </span>
                            <%--<img id="Img16" width="92" src="~/Images/dbImages/gallery-image-small.jpg" runat="server" rel="#image1" />--%>
                            
                            <div class="rcol">
                                <h4><acms:PostDisplayName runat="server" /></h4>
                                <%--<div><acms:PostPublishFrom ID="postPublishFrom" Format="dd MM yy" runat="server" /></div>--%>
                                <div class="ref"><acms:TextContentControlDisplay runat="server" ControlName="ImageRef"/></div>
                                <div class="actions">
                                    <%--<div class="action view">View</div>--%>
                                    <asp:HyperLink ID="lnkDownload" Target="_blank" runat="server" CssClass="action download" Text="Download" />
                                    <%--<div class="action download">Download</div>--%>
                                </div>
                                <%--<a href="images/single.jpg" title="add a caption to title attribute / or leave blank" class="thickbox"><img src="images/single_t.jpg" alt="Single Image"/></a>--%>
                            </div>
                        </div>
                    </ItemTemplate>
                <%--</acms:AcmsDataList>--%>
                </acms:SimpleRepeater>
            
            
            

            <acms:PostDataSource ID="dsList" runat="server" />
    
      
           
           
            
        </div>
      <div class="clearfix"></div>  
        <div id="subNav" style="" class="clearfix">
            <ul id="navApplications">
                <acms:SimpleRepeater ID="dlNavSiblings" DataSourceID="dsSibling" AllowPaging="false" runat="server">
                    <ItemTemplate>
                            <li runat="server" id="navLi" class="sibling" >
                                <asp:HyperLink ID="lnkNav" CssClass="navApplication" NavigateUrl="#" runat="server" />
                            </li>
                        </ItemTemplate>
                    </acms:SimpleRepeater>
            </ul>
            
            
            <ul id="navDetails">
               
            </ul>
        </div>
        <acms:PostDataSource ID="dsSibling" runat="server" />
        
        <div id="pageTitle" class="clearfix">
            <h1><acms:PostDisplayName ID="PostDisplayName" runat="server" /></h1>
            <%--<a href="#" id="moreInfo" class="off">More Info</a>--%>
        </div>
    </div>
    
    <!-- facebook dialog -->
<!-- overlays -->
<%--<div class="simple_overlay" id="image1">
	<img runat="server" src="~/Images/dbImages/gallery-image-large.jpg" />
</div>

<div class="simple_overlay" id="image2">
	<img src="http://farm4.static.flickr.com/3346/3449388113_71a06b8548.jpg" />
</div>--%>

<%--<div id="facebox">
    <div>
    <h2>Facebox</h2>
    <p>This dialog is opened programmatically when the page loads. There is no need for a trigger element.</p>
    <p style="color:#666">To close, click the Close button or hit the ESC key.</p>
		<!-- yes/no buttons -->
		<p>
			<button class="close"> Close </button>
		</p>
	</div>
</div>
--%>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentBase" Runat="Server" Visible="false"></asp:Content>

